export function formatString(str: string) {
    if (str.length <= 5) {
        return str;
    }

    const start = str.slice(0, 3);
    const end = str.slice(-2);
    const middle = '*'.repeat(str.length - 5);

    return `${start}${middle}${end}`;

}